'use strict';
const path = require('path');
module.exports = formatPath;

function formatPath(p) {
  if(!p) return null;
  if(typeof p === 'string') {
    const sep = path.sep
    if(sep === '/') {
      return p
    } else {
      return p.replace(/\\/g, '/')
    }
  }
  return p
}